import requests
import time

headers = {
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
    'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
    'Connection': 'keep-alive',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.42',
}

shareCodes = ['14a08cf45a3c44c7a0fc8f9a394f6c1a',
              '7879c1a9e0ba44f2b0ef1a194730eb78',
              '7094da736aad4bf8afbd3f8745b1ef4b',
              '0b4ecabb7a8846bfaa29a0ef9605aaa4',
              '695ef75a0e1f429984ad904d873a5029',
              'd7e6db09928e4f2bba817ebc6ef418e4',
              '3da69bb43d53460aaedaa6c04c004fc6',
              'ae4a7683516f4c80b204099e5c2db0b6'
              ]

for code in shareCodes:
    response = requests.get(f'http://api.tyh52.com/act/set/jd_fruit/{code}', headers=headers, verify=False)
    print(response.json())
    time.sleep(2)
